package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdDictionary;

import java.util.List;
@Mapper
public interface AdDictionaryMapper {
    int deleteByPrimaryKey(Integer dictionaryId);

    int insert(AdDictionary record);

    int insertSelective(AdDictionary record);

    AdDictionary selectByPrimaryKey(Integer dictionaryId);

    int updateByPrimaryKeySelective(AdDictionary record);

    int updateByPrimaryKey(AdDictionary record);

    AdDictionary selectAdDictionaryByCode(@Param("dictionaryCode")String dictionaryCode);

    List<AdDictionary> selectAdDictionarySearched(@Param("criteria")String criteria);

    List<AdDictionary> selectadDictionaryTypes(String type );
}